<table class="table table-striped table-bordered table-hover">

    <tr>
    <th width="40" height="40">A&ccedil;&otilde;es</th>
    <th>Nome</th>
    <th width="200">Grupo Superior</th>
    </tr>

    <?php
    $sql = "SELECT * FROM grupo
    WHERE grupo.status='0' ORDER BY grupo.gru_nome";
    $res = sql($sql);

    while($linha = mysql_fetch_array($res)) {

    ?>

    <tr>

    <td height="40">
      
      <input name="excluir[]" type="checkbox" value="<?=$linha['gru_id'];?>"/>
      
    </td>
    <td><?=$linha['gru_nome'];?></td>
    <td>
        
        <?php
        $sql1 = "SELECT gru_nome FROM grupo WHERE gru_id='{$linha['gru_id2']}'";
        $res1 = sql($sql1);
        $linha1 = mysql_fetch_array($res1);
        echo $linha1['gru_nome'];
        ?>
        
    </td>
    </tr>

    <?
    } 
    ?>
</table>